import request from '@/utils/request'

// 用户列表
export function getList (params) {
  return request({
    params,
    url: '/back/xsUser/getList',
    method: 'get'
  })
}

//用户详情
export function getDetail (params) {
  return request({
    params,
    url: '/back/getUser'
  })
}

//禁用启用用户
export function setUserIsFlag (data) {
  return request({
    method:'put',
    data,
    url: '/back/xsUser/setUserIsFlag'
  })
}

//绑定售后人员
export function upUserType (data) {
  return request({
    method:'post',
    data,
    url: '/back/upUserType'
  })
}

//编辑用户信息

export function updateUserById (data) {
  return request({
    method:'put',
    data,
    url: '/back/xsUser/updateUserById'
  })
}
